package org.dey.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * 体检预约信息
 */
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_order")
public class Order implements Serializable{
    public static final String ORDERTYPE_TELEPHONE = "电话预约";
    public static final String ORDERTYPE_WEIXIN = "微信预约";
    public static final String ORDERSTATUS_YES = "已到诊";
    public static final String ORDERSTATUS_NO = "未到诊";
    private static final long serialVersionUID = 2962798572318097269L;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private Integer memberId;//会员id
    @TableField(exist = false)
    private String fileNumber;//档案号
    @TableField(exist = false)
    private String name;//姓名
    @TableField(exist = false)
    private String phoneNumber;//手机号
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField("orderDate")
    private Date orderDate;//预约日期
    @TableField("orderType")
    private String orderType;//预约类型 电话预约/微信预约
    @TableField("orderStatus")
    private String orderStatus;//预约状态（是否到诊）
    private Integer setmealId;//体检套餐id
    @TableField("checkDate")
    private Date checkDate;

}
